# Customized settings for Woodenox
import os.path

DJANGO_APP_WOX_ROOT = os.path.realpath(os.path.dirname(__file__))

FORM_VALUE_FS = u':'
JNLP_SERVER = 'myehour.cn.oracle.com'
JNLP_URL= "http://%s/jnlp/wox" % JNLP_SERVER
VNC_PORT = 5800
DJANGO_SERVER = 'wox.cn.oracle.com'

TESTOPIA_SERVER = 'testopia.cn.oracle.com'
AUTH_AGENT = '/webroots/htdocs/bugzilla/verifylogin.pl'
AUTH_AGENT_SSH_USER = 'sunop'
RUN_REPORT_BASE_URL = r"http://%s/tr_run_reports.cgi?aaw=1&type=%%s" % TESTOPIA_SERVER
COMPLETION_REPORT_URL = r"%s&run_ids=%%s" % (RUN_REPORT_BASE_URL % 'completion')
COMPLETION_BARCHART_URL = RUN_REPORT_BASE_URL % 'bar'
RUN_LIST_URL = r"http://%s/tr_list_runs.cgi?run_id=%%s&isactive=1&aaw=1" % TESTOPIA_SERVER
CASERUN_LIST_URL = r"http://%s/tr_list_caseruns.cgi?run_id=%%s&isactive=1&aaw=1" % TESTOPIA_SERVER
RAWLOG_URL = r'http://jdsbj.cn.oracle.com/reqe/autotest/%s/'
MGROUP_CASENUM_GUESS = 3500

CTE_USER = 'gtest'
SSH_USER = CTE_USER
AI_ROOT = '/opt/installtools'
AI_NFS_PREFIX = "/net/%s" % DJANGO_SERVER
#ADDCLIENT_CMD = "%s/bin/addclient.pl" % AI_ROOT
ADDCLIENT_CMD = '/ws/opg-lab-tools/addclient.pl'
DELCLIENT_CMD = '/ws/opg-lab-tools/addclient.legacy'
BUILD_LIST = "%s/builds.lst" % AI_ROOT
AIMANIFEST_TEMPLATE = "%s/manifests/default" % AI_ROOT
SCPROFILE_TEMPLATE = "%s/scprofiles/default" % AI_ROOT
ETC_IP2SITE = "%s/etc/ip2site" % AI_ROOT

CSC_CMD = '/usr/bin/cte-stat-changer'
WOX_CMD = '/opt/wox/framework/wox'

# install log dir
INST_LOGDIR = "%s/logs/inst" % DJANGO_APP_WOX_ROOT
# test log dir
TEST_LOGDIR = "%s/logs/test" % DJANGO_APP_WOX_ROOT

WSA_MONITOR_URL = "http://%s/wsa" % DJANGO_SERVER
# message field separator
WSA_MFS = r'|'
WSA_PIPE = '/tmp/woxsagent.pipe'
# time window max in seconds
WSA_TWMAX = 600
WSA_TERM_TOKEN = 'wsaterm_I_KNOW_WHAT_IM_DOING'

# value separator in url
URL_VS = r','
# End of customized settings for Woodenox

# user for running background actions
# such as autoinstall/autotest
DAEMON_USER_ID = 3
DAEMON_USER_EMAIL = "admin@%s" % DJANGO_SERVER
NOTIFY_ALIAS = 'wox_notify_grp@oracle.com'
BG_AI_URL = "http://%s/bg/ai" % DJANGO_SERVER
BG_AT_URL = "http://%s/bg/at" % DJANGO_SERVER
BG_TRIGGER = "%s/bgtrigger.py" % DJANGO_APP_WOX_ROOT
GENBLDLST_PY = "%s/genbldlst.py" % DJANGO_APP_WOX_ROOT

